home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol E-14 / Vol E-14.iso / games / rings.swf / scripts / frame_3 / PlaceObject2_52_95 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2014-03-11  |  650b  |  31 lines

  1. onClipEvent(enterFrame){
  2.    this.onPress = function()
  3.    {
  4.       if(_currentframe == 3)
  5.       {
  6.          if(_root.ring9 == true)
  7.          {
  8.             gotoAndStop(1);
  9.             _root.score += 10 * _root.time;
  10.             _root.number -= 1;
  11.             tellTarget("_root.sound")
  12.             {
  13.                gotoAndPlay(2);
  14.             }
  15.          }
  16.          else
  17.          {
  18.             tellTarget("_root.sound")
  19.             {
  20.                gotoAndPlay(3);
  21.             }
  22.             gotoAndStop(2);
  23.             tellTarget("_root.liv")
  24.             {
  25.                nextFrame();
  26.             }
  27.          }
  28.       }
  29.    };
  30. }
  31.